package com.etc.order.provider.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.alipay.api.AlipayApiException;
import com.etc.order.common.alipay.AlipayBean;
import com.etc.order.common.service.PayService;
import com.etc.order.provider.alipay.Alipay;
import org.springframework.beans.factory.annotation.Autowired;

@Service
public class PayServiceImpl implements PayService {
    @Autowired
    private Alipay alipay;

    @Override
    public String aliPay(AlipayBean alipayBean) throws AlipayApiException {
        return alipay.pay(alipayBean);
    }
}
